<!DOCTYPE html>
<html>
<head>
<title>工伤事故管理</title>
#parse("sys/header.html")
	<style type="text/css">
		.dropdown {
			position: relative;
			display: inline-block;
		}

		.dropdown-content {
			display: none;
			position: absolute;
			background-color: white;
			z-index: 150;

		}

		.dropdown-content a{
			color: black;

			background-color: #ccc;
			display: block;
			border: none;
			border-color: #ccc;

			border-radius: 2px
		}

		.dropdown-content a:hover {
			background-color: #e6e6e6
		}

		.dropdown:hover .dropdown-content {
			display: block;
		}

		.dropdown:hover .dropbtn {
			background-color: #e6e6e6;
		}

		.maginTo {
			margin-top:4px;
		}
	</style>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">

				<div class="col-sm-1 control-label">公司</div>
				<div class="col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="公司">
			</div>
				<div class="col-sm-1 control-label">部门</div>
				<div class="col-sm-2">
				<input type="text" class="form-control" v-model="q.dept" @keyup.enter="query" placeholder="部门">
			</div>
				<div class="col-sm-1 control-label">岗位</div>
			<div class="col-sm-2">
				<input type="text" class="form-control" v-model="q.post" @keyup.enter="query" placeholder="岗位">
			</div>.
				<div class="col-sm-1 control-label maginTo">员工姓名</div>
			<div class="col-sm-2 maginTo" >
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="员工姓名">
			</div>

				<div class="col-sm-1 control-label maginTo">事故类别</div>
				<div class="col-sm-2 maginTo">
					<select v-model="q.enentType"  @keyup.enter="query" class="form-control">
						<option v-for="enentType in dictList3" :value="enentType.value">{{enentType.label}}</option>
					</select>
				</div>


			<div class="col-sm-1 control-label maginTo">受伤程度</div>
			<div class="col-sm-2 maginTo">
				<select v-model="q.injuryDegree"  @keyup.enter="query" class="form-control">
					<option v-for="injuryDegree in dictList6" :value="injuryDegree.value">{{injuryDegree.label}}</option>
				</select>
			</div>

			<div class="col-sm-1 control-label maginTo"  >伤亡类别</div>
			<div class="col-sm-2 maginTo">
				<select v-model="q.casualtyType" class="form-control">
					<option v-for="casualtyType in dictList1" :value="casualtyType.value">{{casualtyType.label}}</option>
				</select>
			</div>
			<div class="col-sm-1 control-label maginTo" >就诊方式</div>
			<div class="col-sm-2 maginTo" >
				<select v-model="q.jzfs" class="form-control">
					<option v-for="jzfs in dictList2" :value="jzfs.value">{{jzfs.label}}</option>
				</select>
			</div>

			<div class="col-sm-1 control-label maginTo">鉴定等级</div>
			<div class="col-sm-2 maginTo">
				<select v-model="q.jddj" class="form-control">
					<option v-for="jddj in dictList4" :value="jddj.value">{{jddj.label}}</option>
				</select>
			</div>

		<div class="form-group">
			<div class="col-sm-1 control-label maginTo">是否完结</div>
			<div class="col-sm-2 maginTo">
				<select v-model="q.sfwj" class="form-control">
					<option v-for="sfwj in dictList7" :value="sfwj.value">{{sfwj.label}}</option>
				</select>
			</div>

			<div class="col-sm-1 control-label maginTo">事故时间范围</div>
			<div class="col-sm-6 maginTo">
				<el-date-picker type="daterange" v-model="q.dateRange" placeholder="时间范围" @change="dateChange"/>

				<!--<el-date-picker v-model="q.eventDate1" type="date" placeholder="事故时间"/>-->
				<!--<input type="text" class="form-control"  placeholder="事故时间" v-model="q.eventDate1" @keyup.enter="query"  onchange="bindDate(this.value,this.id)"
					   id="eventDate1" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>-->
			</div>
			<!--<div class="col-sm-1 control-label maginTo">事故时间范围</div>
			<div class="col-sm-2 maginTo">
				<el-date-picker type="daterange" v-model="q.dateRange" placeholder="时间范围" @change="dateChange"/>

				&lt;!&ndash;<el-date-picker v-model="q.eventDate1" type="date" placeholder="事故时间"/>&ndash;&gt;
				&lt;!&ndash;<input type="text" class="form-control"  placeholder="事故时间" v-model="q.eventDate1" @keyup.enter="query"  onchange="bindDate(this.value,this.id)"
					   id="eventDate1" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>&ndash;&gt;
			</div>-->
		<a class="btn btn-default maginTo" @click="query">查询</a>
		</div>
		<div class="grid-btn">

			#if($shiro.hasPermission("accidentsmanagement:save"))
			<a class="btn btn-primary maginTo" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("accidentsmanagement:update"))
			<a class="btn btn-primary maginTo" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("accidentsmanagement:delete"))
			<a class="btn btn-primary maginTo" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end

			<div class="dropdown">
				<a class="btn btn-primary" maginTo>提交确认<i class="glyphicon glyphicon-chevron-down"></i></a>
				<div class="dropdown-content">
					#if($shiro.hasPermission("accidentsmanagement:gskb"))
					<a class="btn btn-primary"  @click="gskb" >工伤快报</a>
					#end
					#if($shiro.hasPermission("accidentsmanagement:gsrd"))
					<a class="btn btn-primary"  @click="gsrd" >工伤认定</a>
					#end
					#if($shiro.hasPermission("accidentsmanagement:ldnljd"))
					<a class="btn btn-primary"  @click="ldnljd" >劳动能力鉴定</a>
					#end
					#if($shiro.hasPermission("accidentsmanagement:scbz"))
					<a class="btn btn-primary"  @click="scbz" >伤残补助</a>
					#end
					#if($shiro.hasPermission("accidentsmanagement:ylbz"))
					<a class="btn btn-primary"  @click="ylbz" >医疗补助</a>
					#end
					#if($shiro.hasPermission("accidentsmanagement:gwdy"))
					<a class="btn btn-primary"  @click="gwdy" >工亡待遇</a>
					#end
					<!--<a class="btn btn-default btn-sm grid-btnre">下拉菜单 1</a>
					<a class="btn btn-default btn-sm grid-btnre">下拉菜单 1</a>-->
				</div>
			</div>

			#if($shiro.hasPermission("accidentsmanagement:rdjg"))
			<a class="btn btn-primary maginTo" @click="rdjg"><i class="fa fa-pencil-square-o"></i>&nbsp;认定结果</a>
			#end
			#if($shiro.hasPermission("accidentsmanagement:jdjg"))
			<a class="btn btn-primary maginTo" @click="jdjg"><i class="fa fa-pencil-square-o"></i>&nbsp;鉴定结果</a>
			#end
			#if($shiro.hasPermission("accidentsmanagement:fybx"))
			<a class="btn btn-primary maginTo" @click="fybx"><i class="fa fa-pencil-square-o"></i>&nbsp;费用报销</a>
			#end
			#if($shiro.hasPermission("accidentsmanagement:updateHk"))
			<a class="btn btn-primary maginTo" @click="updateHk"><i class="fa fa-pencil-square-o"></i>&nbsp;修改回款</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-1 control-label">员工姓名</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="accidentsManagement.name" readonly="readonly"  @click="popPage"  placeholder="请选择"/>
			    </div>
				<div class="col-sm-1 control-label">事故时间</div>
				<div class="col-sm-2">
					<input type="text" class="form-control"  placeholder="事故时间" onchange="bindDate(this.value,this.id,'accidentsManagement')" v-model="accidentsManagement.eventDate"
						   id="eventDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>
				</div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-1 control-label">事故地点</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="accidentsManagement.enentPlace" placeholder="事故地点"/>
			    </div>
				<div class="col-sm-1 control-label">伤亡类别</div>
				<div class="col-sm-2">
					<select v-model="accidentsManagement.casualtyType" class="form-control">
						<option v-for="casualtyType in dictList1" :value="casualtyType.value">{{casualtyType.label}}</option>
					</select>
				</div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-1 control-label">受伤部位</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="accidentsManagement.injurySite" placeholder="伤害部位"/>
			    </div>

				<div class="col-sm-1 control-label">受伤程度</div>
				<div class="col-sm-2">
					<select v-model="accidentsManagement.injuryDegree" class="form-control">
						<option v-for="injuryDegree in dictList6" :value="injuryDegree.value">{{injuryDegree.label}}</option>
					</select>
					<!--<input type="text" class="form-control" v-model="accidentsManagement.injuryDegree" placeholder="伤害程度"/>-->
				</div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-1 control-label">就诊医院</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="accidentsManagement.jzHospital" placeholder="就诊医院"/>
			    </div>
				<div class="col-sm-1 control-label">就诊日期</div>
				<div class="col-sm-2">
					<input type="text" class="form-control"  placeholder="就诊日期" onchange="bindDate(this.value,this.id,'accidentsManagement')" v-model="accidentsManagement.jzDate"
						   id="jzDate"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>
				</div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-1 control-label">就诊方式</div>
			   	<div class="col-sm-2">
					<select v-model="accidentsManagement.jzfs" class="form-control">
						<option v-for="jzfs in dictList2" :value="jzfs.value">{{jzfs.label}}</option>
					</select>
			    </div>

				<div class="col-sm-1 control-label">事故概况</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="accidentsManagement.accidentSurvey" placeholder="事故概况"/>
				</div>
			</div>


			<div class="form-group">
				<div class="col-sm-1 control-label">事故类别</div>
				<div class="col-sm-2">
					<select v-model="accidentsManagement.enentType" class="form-control">
						<option v-for="enentType in dictList3" :value="enentType.value">{{enentType.label}}</option>
					</select>
					<!--<input type="text" class="form-control" v-model="accidentsManagement.enentType" placeholder="事故类别"/>-->
				</div>
			</div>

							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div v-show="showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">


			<div v-show="showtable1" class="form-group">
				<div class="col-sm-2 control-label">快报提交日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  placeholder="快报提交日期" onchange="bindDate(this.value,this.id,'accidentsManagement')" v-model="accidentsManagement.expressSubmissionDate"
						   id="expressSubmissionDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly" />
				</div>
			</div>

			<div v-show="showtable2" class="form-group">
				<div class="col-sm-2 control-label">认定申请日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  placeholder="认定申请日期" onchange="bindDate(this.value,this.id,'accidentsManagement')" v-model="accidentsManagement.rdsqrq"
						   id="rdsqrq" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly" />
				</div>
			</div>
			<div  v-show="showtable2"  class="form-group">
				<div class="col-sm-2 control-label">是否认定</div>
				<div class="col-sm-10">


					<label class="radio-inline"><input type="radio" v-model="accidentsManagement.isconfirm" value="0"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="accidentsManagement.isconfirm" value="1"/>否</label>
				</div>
			</div>

			<div v-show="showtable3" class="form-group">
				<div class="col-sm-2 control-label">鉴定申请日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  placeholder="鉴定申请日期" onchange="bindDate(this.value,this.id,'accidentsManagement')" v-model="accidentsManagement.jdsqrq"
						   id="jdsqrq" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>
				</div>
			</div>





			<div v-show="showtable4" class="form-group">
				<div class="col-sm-2 control-label">伤残补助</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.scbz" placeholder="伤残补助"/>
				</div>
			</div>





			<div v-show="showtable5" class="form-group">
				<div class="col-sm-2 control-label">医疗补助</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.ylbz" placeholder="医疗补助"/>
				</div>
			</div>



			<div v-show="showtable6" class="form-group">
				<div class="col-sm-2 control-label">工亡待遇</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.gwdy" placeholder="工亡待遇"/>
				</div>
			</div>


			<div v-show="showtable7"  class="form-group">
				<div class="col-sm-2 control-label">认定下达日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  placeholder="认定下达日期" onchange="bindDate(this.value,this.id,'accidentsManagement')" v-model="accidentsManagement.rdxdrq"
						   id="rdxdrq" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>
				</div>
			</div>
			<div v-show="showtable7"  class="form-group">
				<div class="col-sm-2 control-label">认定编号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.rdno" placeholder="认定编号"/>
				</div>
			</div>



			<div v-show="showtable8"  class="form-group">
				<div class="col-sm-2 control-label">鉴定编号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.jdno" placeholder="鉴定编号"/>
				</div>
			</div>
			<div v-show="showtable8"  class="form-group">
				<div class="col-sm-2 control-label">鉴定等级</div>
				<div class="col-sm-10">
					<select v-model="accidentsManagement.jddj" class="form-control">
						<option v-for="jddj in dictList4" :value="jddj.value">{{jddj.label}}</option>
					</select>
					<!--<input type="text" class="form-control" v-model="accidentsManagement.jddj" placeholder="鉴定等级"/>-->
				</div>
			</div>


			<div  v-show="showtable9" class="form-group">
				<div class="col-sm-2 control-label">发票类型</div>
				<div class="col-sm-10">
					<select v-model="accidentsManagement.invoiceType" class="form-control">
						<option v-for="invoiceType in dictList5" :value="invoiceType.value">{{invoiceType.label}}</option>
					</select>
					<!--<input type="text" class="form-control" v-model="accidentsManagement.invoiceType" placeholder="发票类型"/>-->
				</div>
			</div>
			<div  v-show="showtable9" class="form-group">
				<div class="col-sm-2 control-label">发票金额</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.invoiceMoney" placeholder="发票金额"/>
				</div>
			</div>
			<div  v-show="showtable9" class="form-group">
				<div class="col-sm-2 control-label">发票数量</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.invoiceQuantity" placeholder="发票数量"/>
				</div>
			</div>
			<div  v-show="showtable9" class="form-group">
				<div class="col-sm-2 control-label">报销提交日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  placeholder="报销提交日期" onchange="bindDate(this.value,this.id,'accidentsManagement')" v-model="accidentsManagement.reimbursementSubmitDate"
						   id="reimbursementSubmitDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>
				</div>
			</div>
			<div  v-show="showtable9" class="form-group">
				<div class="col-sm-2 control-label">是否完结</div>
				<div class="col-sm-10">

					<select v-model="accidentsManagement.sfwj" class="form-control">
						<option v-for="sfwj in dictList7" :value="sfwj.value">{{sfwj.label}}</option>
					</select>
				</div>
			</div>


			<div v-show="showtable10"  class="form-group">
				<div class="col-sm-2 control-label">报销金额</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.reimbursementMoney" placeholder="报销金额"/>
				</div>
			</div>
			<div v-show="showtable10"  class="form-group">
				<div class="col-sm-2 control-label">伙食补助</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.hsbz" placeholder="伙食补助"/>
				</div>
			</div>

			<div v-show="showtable10"  class="form-group">
				<div class="col-sm-2 control-label">回款日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control"  placeholder="回款日期" onchange="bindDate(this.value,this.id,'accidentsManagement')" v-model="accidentsManagement.hkrq"
						   id="hkrq" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>
				</div>
			</div>
			<div v-show="showtable10"  class="form-group">
				<div class="col-sm-2 control-label">回款批次</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="accidentsManagement.hkpc" placeholder="回款批次"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>

<script src="${rc.contextPath}/js/hr/accidentsmanagement.js?_${date.systemTime}"></script>
</body>
</html>